package com.yunsom.testdemo.design.vistor;

/**
 * @author Xbao
 * @version 1.0
 * @description 访问者模式
 * @date 2021/3/19 16:47
 */
public class VistorTest {

  public static void main(String[] args) {
    //构建报表
    BusinessReport report = new BusinessReport();
    System.out.println("CEO看报表");
    report.showReport(new CeoVisitor());
    System.out.println("CTO看报表");
    report.showReport(new CtoVisitor());
  }
}
